package cn.iocoder.lw.module.core.controller.admin.workorder.vo.workorder;

import cn.iocoder.lw.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.lw.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 工单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CoreWorkOrderPageReqVO extends PageParam {

    @Schema(description = "工单编号", example = "WO1234567890")
    private String orderNo;

    @Schema(description = "项目ID", example = "12345")
    private Long projectId;

    @Schema(description = "房源ID", example = "12345")
    private Long houseId;

    @Schema(description = "设备编号", example = "12345")
    private Long deviceId;

    @Schema(description = "工单状态", example = "1")
    private Integer status;

    @Schema(description = "发起人ID", example = "12345")
    private Long initiatorId;

    @Schema(description = "接单人ID", example = "12345")
    private Long assigneeId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}